<template>
    <div>
        <div class="mui-numbox" data-numbox-min='1'>
            <!-- "-"按钮，点击可减小当前数值 -->
            <button class="mui-btn mui-numbox-btn-minus" type="button" >-</button>
            <input class="mui-numbox-input" type="number" />
            <!-- "+"按钮，点击可增大当前数值 -->
            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
    </div>
</template>

<script>
import mui from "../../../lib/mui/js/mui.js"

export default {
    data() {
        return {
            // nmax:'',
            count:''
        }
    },
    mounted(){
        //初始化numbox
        mui(".mui-numbox").numbox()

    },
    props:["max"],
    watch:{
        max(newval){
          mui(".mui-numbox").numbox().setOption('max',newval)
        }
    }
}
</script>

<style lang="scss" scoped>
    
</style>